{template header}

<div class="with_side w960">
	<div class="main">
		<br />
		<!--{if ($started || $adminid == 1)}-->
			<!--{if ($sys_uid)}-->
				<form method="post" action="question.php">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="pid" value="{$p['id']}" />

				<div class="problem">
					<!--{if ($adminid == 1)}--><a href="admin.php?action=edit&pid={$p['id']}">({lang text edit})</a><!--{/if}-->
					{$p['id']}:{$p['problem']['problem']}<br />
					<!--{if ($p['type'] == 1)}-->
						<input type="text" name="inputanswer" value="" />
						<br />
					<!--{elseif ($p['type'] == 2)}-->
						<!--{loop $p['problem']['choice'] $choice}-->
							<input type="radio" name="inputanswer" value="{$choice['value']}" />{$choice['string']}<br />
						<!--{/loop}-->
					<!--{elseif ($p['type'] == 3)}-->
						<!--{loop $p['problem']['choice'] $choice}-->
							<input type="checkbox" name="inputanswer[]" value="{$choice['value']}" />{$choice['string']}<br />
						<!--{/loop}-->
					<!--{else}-->
						<textarea name="inputanswer" cols="60" rows="4"></textarea>
					<!--{/if}-->
				</div>
 
				<!--{if (!$ended)}-->
				<input type="submit" value="{lang button submit}" name="submitanswer" id="submitanswer" />
				<div class="warning">{lang submitnotice}</div>
				<!--{/if}-->
				</form>
			<!--{/if}-->
		<!--{/if}-->
	</div>
	
	<div class="side">
		{template menu}
	</div>
</div>

{template footer}